package com.aj.http.request;

import java.util.HashMap;

import android.content.Context;
import android.util.Log;

import com.aj.http.AsynchronizationHttpRequest;
import com.aj.http.AsynchronizationHttpRequest.IHttpCallBack;

public class ManagerChildRequest extends BaseRequset {
	private static final String TAG = ManagerChildRequest.class.getName();

	public void excute(Context context, String userId, String oper,
			String childrenId, String hasAjNo, String photoUrl,
			String nickName, String trueName, String six, String birthday,
			String phoneNo, String isPrivate, String ajno, String callId,
			String description, IHttpCallBack httpCallBack) {
		HashMap<String, String> paramsHashMap = new HashMap<String, String>();
		paramsHashMap.put("userId", userId);
		paramsHashMap.put("oper", oper);
		if (callId != null) {
			paramsHashMap.put("callId", callId);
		}
		if (description != null) {
			paramsHashMap.put("description", description);
		}
		if (ajno != null) {
			paramsHashMap.put("ajno", ajno);
		}
		if (isPrivate != null) {
			paramsHashMap.put("isPrivate", isPrivate);
		}
		if (childrenId != null) {
			paramsHashMap.put("childrenId", childrenId);
		}
		if (hasAjNo != null) {
			paramsHashMap.put("hasAjNo", hasAjNo);
		}
		if (photoUrl != null) {
			paramsHashMap.put("photoUrl", photoUrl);
		}
		if (nickName != null) {
			paramsHashMap.put("nickName", nickName);
		}
		if (trueName != null) {
			paramsHashMap.put("trueName", trueName);
		}
		if (six != null) {
			paramsHashMap.put("six", six);
		}
		if (birthday != null) {
			paramsHashMap.put("birthday", birthday);
		}
		if (phoneNo != null) {
			paramsHashMap.put("phoneNo", phoneNo);
		}

		String tempString = getParams(SERVICE_CHILDREN_MGR_STRING,
				paramsHashMap);
		Log.e(TAG, "tempString:" + tempString);
		// TODO加密
		AsynchronizationHttpRequest request = new AsynchronizationHttpRequest();
		request.excute(context, BASE_REQUEST_URL_NOPAGE_STRING, tempString,
				httpCallBack);
	}

}
